/***************************************************************************
 *   Copyright (C) 2008 by Camille Gallet, Rémy Hubscher, Regis Strub,     *
 *                         Ali Abdou                                       *
 *                                                                         *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef GAMEFRAME_H_INCLUDED
#define GAMEFRAME_H_INCLUDED

#include <QMainWindow>
#include <QApplication>

#include "Board.hpp"
#include "ui_FenetrePrincipale.h"	// HYPER IMPORTANT
//#include "GameFrame.moc"	        // HYPER IMPORTANT avec Slot

class GameFrame : public QMainWindow, private Ui::FenetrePrincipale
{
    Q_OBJECT

    private:
        Board * board;
        QDialog *dlg;
        QLineEdit *nP1,*nP2;
        QCheckBox *humanP1,*humanP2;

    public:
        GameFrame(QWidget * parent=0);
        void createActions();
        void connecting(GameEngine *);

    signals:
        void getMove(Moving &m);
        void jouer();
        void writeConf(QString p1Name, QString p2Name, bool p1Human, bool p2Human);
			    
    public slots:
        void confOk();
        void confAnnuler();
        void getConfig();
    	void newGame();
        void aboutForce3();
        void aboutRules();
        void recupBoard(int *);
        void recupAskingMove(GameEngine::player);
};

#endif // GAMEFRAME_H
